﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace Components
{
    public class HashtableHelper
    {
        private static HashtableHelper _u;

        public static HashtableHelper U
        {
            get 
            {
                if (_u == null)
                    _u = new HashtableHelper();
                return _u;
            }
        }

        private Hashtable table;

        public Hashtable Table
        {
            get
            {
                table = new Hashtable();
                return table;
            }
        }

        public Hashtable Add(string key, object v)
        {
            if (table == null)
            {
                table = new Hashtable();
            }

            table[key] = v;

            return this.table;
        }
    }
}
